package day03.homework.extend;

public class Three {
    public static void main(String[] args) {
        // 成绩等级判断:考虑成绩的合法性：当不合法成绩时，输出"成绩不合法
        double score = 82;
        if (score<0 || score >100){
            System.out.println("成绩不合法");
        } else if (score>=90) {
            System.out.println("优秀");
        } else if (score>=80) {
            System.out.println("良好");
        } else if (score>=70) {
            System.out.println("中等");
        }else if (score>=60){
            System.out.println("及格");
        }else{
            System.out.println("不及格");
        }
    }
}
